package com.gitee.mapper;

import com.gitee.annotation.AutoFill;
import com.gitee.entity.Group;
import com.gitee.enumeration.OperationType;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface GroupMapper {

    @AutoFill(OperationType.INSERT)
    void insert(Group group);

    @Delete("delete from sxq_group where id = #{id}")
    void deleteById(Integer id);

    @Select("select * from sxq_group where id = #{id}")
    Group selectById(Integer id);

    @AutoFill(OperationType.UPDATE)
    void updateById(Group group);

    List<Group> selectByIds(List<Integer> groupIds);
}
